<?php
// $Id: matchdart.admin.inc 182 2010-03-13 17:49:35Z mwi.nor $

/**
 * @file
 * Administrative page callbacks for the matchdart module.
 */

/**
 * Form builder for the matchdart settings page.
 * @return form An array of matchdart settings form elements
 * 
 * @see system_settings_form()
 */
function matchdart_admin_settings() {
  $form = array();
  
  $form['matchdart_myplayercolor'] = array(
    '#type' => 'textfield',
    '#title' => t('Highlight color'),
    '#default_value' => variable_get('matchdart_myplayercolor', '#FF0000'),
    '#size' => 10,
    '#maxlength' => 7,
    '#description' => t("The color to highlight own player in tables [#hex]."),
    '#required' => TRUE,
  );

  
  return system_settings_form($form);
}
